<?php

class Soul_Validation_Rule_MinValue extends Soul_Validation_Rule_Base {

	private $_value = NULL;

    public function  __construct($value){
        parent::__construct();
        $this->_value = $value;
    }

    public function getValue(){
    	return $this->_value ;
    }
    public function setValue($value){
    	$this->_value  = $value;
    }

    public function getType(){
        return 'minValue';
    }

    public function check($value) {
        return $value >= $this->getValue();
    }
}